//内容类型
enum AnswerContentShowType {
  AnswerContentShowTypeOnlyText,//只有文字
  AnswerContentShowTypeMultiLineInput,//多行输入框样式
}

class RecordDetailBean {
  String title;
  String answer;
  String inputType;
  AnswerContentShowType showType;

  RecordDetailBean({this.title = "", this.answer = "", this.inputType = "",this.showType = AnswerContentShowType.AnswerContentShowTypeOnlyText});

  RecordDetailBean.fromJson(Map<String, dynamic> json) {
    title = json['title'] ?? "";
    answer = json['answer'] ?? "";
    inputType = json['inputType'] ?? "";
    if(this.inputType == "多行") {
      this.showType = AnswerContentShowType.AnswerContentShowTypeMultiLineInput;
    } else {
      this.showType = AnswerContentShowType.AnswerContentShowTypeOnlyText;
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['answer'] = this.answer;
    data['inputType'] = this.inputType;
    return data;
  }
}
